import Layout from '@/layout'
const router = {
  path: '/visit',
  component: Layout,
  redirect: '/visit/data',
  alwaysShow: true,
  name: 'visit',
  meta: {
    type: 'I',
    roles: ['3210', '3220'],
    title: '拜访',
    icon: 'visitor'
  },
  children: [{
    path: 'data',
    component: () => import('@/views/visit/data'),
    name: 'visitData',
    meta: {
      type: 'I',
      roles: ['3210'],
      title: '业务员行程'
    }
  }, {
    path: 'photo',
    component: () => import('@/views/visit/photo'),
    name: 'visitPhoto',
    meta: {
      type: 'I',
      roles: ['3220', '322040', '322050'],
      title: '业务图片查询'
    }
  }]
}

export default router
